<!DOCTYPE html>
<html>
<head>
<title></title> <@h.head />


<style type="text/css">
body {
	padding-bottom: 40px;
}

.sidebar-nav {
	padding: 9px 0;
}

@media ( max-width : 980px) {
	/* Enable use of floated navbar text */
	.navbar-text.pull-right {
		float: none;
		padding-left: 5px;
		padding-right: 5px;
	}
}
</style>
</head>
<body>
	<form class="form-inline definewidth m20" action="${path}/retailArea/list" method="post" id="listForm">
		城市： <input type="text" name="name" id="name"
			class="abc input-default" placeholder="请输入城市" value="${(RequestParameters['name'])!''}">&nbsp;&nbsp;
		<button type="submit" class="btn btn-primary">查询</button>
		&nbsp;&nbsp; 
		<a class="btn btn-success" href="${path}/retailArea/add">新增城市</a>
	</form>
	<table class="table table-bordered table-hover definewidth m10">
		<thead>
			<tr>
				<th>城市</th>
				<th>区域</th>
				<th>启用/禁用</th>
				<th>创建时间</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<#list list as record>
			<tr id="rowid${record.id}">
				<td>${(record.name)!""}</td>
				<td>
					<#list retailRegion as dict>
						<#if retailArea?? && (record.region==dict.value)>
							${dict.label}
						</#if>
					</#list>
				</td>
				<td>${(record.disabled==0)?string("启用","禁用")}</td>
				<td>${record.createTime?string("yyyy-MM-dd HH:mm:ss")}</td>
				<td>
				<a class="edit" href="${path}/retailArea/add?id=${record.id}">修改</a>
				</td>
			</tr>
			</#list>
		</tbody>
	</table>
	<@h.page /> <@h.foot />
</body>
</html>
